package com.yjha.lzmarathonsys.dto;
import com.yjha.lzmarathonsys.bean.TbPersonClockin;
import com.yjha.lzmarathonsys.bean.TbSpecialClockin;
import com.yjha.lzmarathonsys.bean.TbUserInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("评论信息对象")
public class CommentDto {
    @ApiModelProperty("评论ID")
    private Long tbCommentId;
    @ApiModelProperty("评论内容")
    private String tbContent;
    @ApiModelProperty("用户openId")
    private String tbUserId;
    @ApiModelProperty("打卡ID")
    private Integer tbTargetId;
    @ApiModelProperty("评论父级ID")
    private Long tbParentId;
    @ApiModelProperty("父级ID")
    private Long tbRootId;
    @ApiModelProperty("评论创建时间")
    private Date tbCreateTime;
    @ApiModelProperty("打卡类型 0个人   1专题")
    private Integer tbType;
    @ApiModelProperty("用户信息")
    private TbUserInfo tbUserInfo;
    @ApiModelProperty("个人打卡信息")
    private TbPersonClockin tbPersonClockin;
    @ApiModelProperty("专题打卡信息")
    private TbSpecialClockin tbSpecialClockin;
    @ApiModelProperty("打卡状态")
    private Integer tbTargetStatus;
    @ApiModelProperty("评论子集")
    private List<CommentDto> replies = new ArrayList<>();
    private boolean del;
}
